import requests
import os

url = "https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64"
filename = "oh-my-posh"
destination_folder = "./file/"

# 拼接文件的完整路径
file_path = os.path.join(destination_folder, filename)

# 下载文件
response = requests.get(url)
with open(file_path, "wb") as file:
    file.write(response.content)

print(f"{filename} 下载完成，保存在 {destination_folder} 中。")
